package asteroids.model.programs.parsing.expressions;

import java.util.Map;

import asteroids.model.Ship;
import asteroids.model.programs.parsing.types.EntityLiteral;
import asteroids.model.programs.parsing.types.Type;

/**
 * A class of self expressions.
 * A self expression is just the ship that executes the program.
 * 
 * @author Thijs Dieltjens - Wim Konings
 * @version 2.0
 */
public class SelfExpr extends NullaryExpression{

	public SelfExpr(int line, int column) {
		super(line, column);
	}

	@Override
	public EntityLiteral eval(Ship ship, Map<String, Type> globals) {
		return new EntityLiteral(ship);
	}
}
